﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="buyer_budgetList.aspx.cs"
    Inherits="PeisongWeb.buyer_budgetList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>采购配送系统-预算管理</title>
    <!--#include file="../global.inc" -->
    <script src="/app_common/scripts/jquery-latest.pack.js" type="text/javascript"></script>
    <script type="text/javascript">
        function resetSrh() {
            document.getElementById("ddl_Bmonth").value = "";
        }
    </script>
    <script src="/fromjs/fillscreenFix.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div id="container">
        <uc1:headerV2 runat="server" ID="header1" />
        <div id="homemain">
            <div id="main">
                <div class="title">
                    <div class="title_text">
                        <ul>
                            <li class="color1">预算管理</li>
                        </ul>
                    </div>
                </div>
                <div class="line_top">
                </div>
                <div id="mainmiddle">
                    <div class="search_list">
                        <div class="search_title">
                            <span>预算管理</span>
                        </div>
                        <div class="listsearch">
                            <ul>
                                <li>
                                    <label>
                                        日期：
                                    </label>
                                    <asp:DropDownList runat="server" ID="ddl_Byear">
                                    </asp:DropDownList>
                                    年
                                    <asp:DropDownList runat="server" ID="ddl_Bmonth">
                                    </asp:DropDownList>
                                    月 </li>
                                <li>
                                    <asp:Button runat="server" CssClass="button_round" ID="btn_select" Text="查 询" OnClick="btn_select_Click" />
                                </li>
                                <li>
                                    <input class="button_round" type="button" value="重 置" id="btn_reset" onclick="resetSrh()" />
                                </li>
                                <li style='<%=hasPermission("ED",2)?"": "display:none"%>'>
                                    <input class="button_round8" type="button" value="设置新的预算费用" id="add" onclick="window.location.href='buyer_budgetEdit.html'" />
                                </li>
                            </ul>
                        </div>
                    </div>
                    <div class="list_content">
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr class="list_title">
                                <td width="20%">
                                    日期
                                </td>
                                <td width="20%">
                                    预算费用
                                </td>
                                <td width="20%">
                                    创建日期
                                </td>
                                <td width="20%">
                                    超支提示
                                </td>
                                <td width="20%" colspan="3" style='<%=hasPermission("ED",2)?"": "display:none"%>'>
                                    操作
                                </td>
                            </tr>
                        </table>
                        <table border="0" cellspacing="0" cellpadding="0" class="list_border">
                            <asp:Repeater ID="rpt_list" runat="server" OnItemCommand="rpt_list_ItemCommand">
                                <ItemTemplate>
                                    <tr class='<%# Container.ItemIndex%2==0?"":"tr_color"  %>'>
                                        <td width="20%">
                                            <%# Eval("Byear")%>年<%# Eval("Bmonth")%>月
                                        </td>
                                        <td width="20%">
                                            <%# string.Format("{0:F2}",Eval("BudgetFee"))%>
                                        </td>
                                        <td width="20%">
                                            <%# Eval("inputDt")%>
                                        </td>
                                        <td width="20%">
                                            <%#Convert.ToInt32(Eval("IsHint"))==1?"提示":"不提示"%>
                                        </td>
                                        <td width="10%" style='<%=hasPermission("ED",2)?"": "display:none"%>'>
                                            <a style='<%# Convert.ToInt32(Eval("Byear")) <= DateTime.Now.Year ? (Convert.ToInt32(Eval("Bmonth"))>DateTime.Now.Month?"": "display:none") : ""%>'
                                                href="buyer_budgetEdit<%# Eval("Bid") %>.html">
                                                <img alt="" src="/app_common/images/bj.gif" />
                                            </a>
                                        </td>
                                        <td width="10%" style='<%=hasPermission("ED",2)?"": "display:none"%>'>
                                            <asp:LinkButton CausesValidation="false" ID="lbn_hint" runat="server" CommandName="IsHint"
                                                CommandArgument='<%# Eval("Bid") %>' Text='<%#Convert.ToInt32(Eval("IsHint"))==1?"不再提示":"启用提示"%>'
                                                Visible='<%# Convert.ToInt32(Eval("Byear")) <=DateTime.Now.Year ? (Convert.ToInt32(Eval("Bmonth"))>=DateTime.Now.Month?true: false) : true%>'>
                                            </asp:LinkButton>
                                        </td>
                                    </tr>
                                </ItemTemplate>
                            </asp:Repeater>
                        </table>
                    </div>
                    <div class="page">
                        <webdiyer:AspNetPager ID="AspNetPager1" NumericButtonType="Text" MoreButtonType="Text"
                            AlwaysShow="true" Width="98%" runat="server" PageSize="15" InvalidPageIndexErrorMessage="无效页码"
                            NumericButtonCount="5" PageIndexOutOfRangeErrorMessage="页码超出范围" ShowCustomInfoSection="Left"
                            CustomInfoHTML=" 每页%PageSize%条记录 | 总共%RecordCount%条记录 " CustomInfoTextAlign="Left"
                            HorizontalAlign="Right" OnPageChanged="AspNetPager1_PageChanged" NextPageText=">"
                            FirstPageText="<<首页" LastPageText="末页>>" PrevPageText="<" CssClass="paginator"
                            CurrentPageButtonClass="cpb">
                        </webdiyer:AspNetPager>
                    </div>
                </div>
            </div>
        </div>
        <uc1:footerV2 runat="server" ID="footer1" />
    </div>
    </form>
</body>
</html>
